package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.UserAccount;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 * 用户账户 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2024-04-15
 */
public interface UserAccountService extends IService<UserAccount> {

    String recharge(String token, BigDecimal amount);

    String rechargeNotify(Map<String, Object> map);

    BigDecimal getBalance(Long id);

    void updateBalanceAndFreezeMoney(BigDecimal voteAmt, Long userId);
}
